#coding=utf-8
'''
Created on 2013年9月6日

@author: kedingzhu
'''
from django.forms import ModelForm
from django.db import models

class Sampleinfo(models.Model):
    filemd5 = models.CharField(max_length=32)
    update = models.DateTimeField()
    #0,PE 1,dll
    filetype = models.PositiveIntegerField()
    email = models.EmailField(max_length = 100)
    QQnum = models.PositiveIntegerField()
    remark = models.TextField()
    
    def __unicode__(self):
        return u'%s' % self.remark

class upsampleForm(ModelForm):
    class Meta:
        model = Sampleinfo
        fields = ['filemd5', 'update', 'email', 'QQnum', 'remark']